#!/bin/bash
function backup_file() {
    if [ -f $1 ];
    then
        mv $1 $1_bak`date +%y%m%d%H%M%S`;
    fi
}

function push_file() {
    backup_file $2;
    cp $1 $2 -f
}

push_file screenrc ~/.screenrc
push_file vimrc ~/.vimrc
push_file tmux.conf ~/.tmux.conf

sh git_config.sh
